package com.crazypos.pojo;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("t_product")
public class ProductEntity extends BaseEntity{

    @TableId(value="id",type= IdType.ASSIGN_UUID)
    private String id;

    @TableField(value = "status")
    private Integer status;

    @TableField(value = "name")
    private String name;

    @TableField(value = "plug")
    private String plug;

    @TableField(value = "sku")
    private String sku;

    @TableField("has_variants")
    private Integer hasVariants;

    @TableField(value = "is_tradein")
    private Integer isTradein;

    @TableField(value = "has_serial_num")
    private Integer hasSerialNum;

    @TableField(value = "is_repairable")
    private Integer isRepairable;

    @TableField(value = "is_system")
    private Integer isSystem;

    @TableField(value = "purchase_price")
    private float purchasePrice;

    @TableField(value = "sale_price")
    private float salePrice;

    @TableField(value = "description")
    private String description;

    @TableField(value = "qunantity")
    private Integer quantity;

    @TableField(value = "tax_id")
    private String taxId;

    @TableField(value = "unit_id")
    private String unitId;

    @TableField(value = "category_id")
    private String categoryId;

    @TableField(value = "brand_id")
    private String brandId;

    @TableField(value = "image")
    private String image;

    @TableField(value = "product_type")
    private Integer productType;

    @TableField(value = "sort")
    private Integer sort;

    @TableField(value = "created_by")
    private String createdBy;

    @TableField(value = "organization_id")
    private String organizationId;
}
